<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
	<title>766-资迅中心</title>
	<link href="${base}/resources/terminal/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body> 
	[#include "/terminal/include/search.ftl" /]
	<div class="content container clearfix">
			<div class="left">
				<nav class="head_nav clearfix">
					<div class="left classification">
						<label>资讯中心：</label>
						<ul>
							<li><a href="list.jhtml" [#if articleCategoryId == null]class="selected_class"[/#if]>全部</a></li>
							[#list articleCategorys as cate]
								<li><a href="list.jhtml?articleCategoryId=${cate.id}" [#if cate.id == articleCategoryId]class="selected_class"[/#if]>${cate.name}</a></li>
							[/#list]
						</ul>
					</div>
					<div class="right">
						<div>
							<span>共</span>
							<span class="red product_num" id="productNum">${page.total}</span>
							<span>个商品</span>
						</div>
						<div>
							<span>${page.pageNumber}</span>/
							<span>${page.totalPages}</span>
						</div>
						<!-- <div class="pagination_group">
							[#if page.pageNumber == 1]
								<span href="" class="">上一页</span>
								[#if page.totalPages == page.pageNumber]
									<span href="" class="">下一页</span>
								[#else]
									<a href="list.jhtml?pageNumber=${page.pageNumber+1}">下一页</a>
								[/#if]
							[#elseif page.pageNumber == page.totalPages]
								<a href="list.jhtml?pageNumber=${page.pageNumber-1}">上一页</a>
								<span href="" class="">下一页</span>
							[#else]
								<a href="list.jhtml?pageNumber=${page.pageNumber-1}">上一页</a>
								<a href="list.jhtml?pageNumber=${page.pageNumber+1}">下一页</a>
							[/#if]
						</div> -->
					</div>
				</nav>
				<div class="consulting_con">
					[#list page.content as art]
						<dl class="c_list">
							<dt>
								<a href="${base}/terminal/article/content.jhtml?id=${art.id}" class="main_color">${art.title}</a>
								<span class="gray">${art.createDate}</span>
							</dt>
							<dd>
								${abbreviate(art.title,80, "...")}
							</dd>
						</dl>
					[/#list]
				</div>
				<form id="padFromId" action="${base}/pad/article/list.jhtml" method="get">
					<input id="pageNumber" type="hidden" name="pageNumber"/>
					<input type="hidden" name="articleCategoryId" value="${articleCategoryId}"/>
				</form>
				[@pagination pageNumber = page.pageNumber totalPages = page.totalPages pattern = "javascript: $.pageSkip({pageNumber});"]
					[#include "/shop/include/pagination.ftl"]
				[/@pagination]
			</div>
			[#include "/pad/include/aside.ftl" /]
		</div>
	[#include "/pad/include/footer.ftl" /]
	<script type="text/javascript" src="${base}/resources/public/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="${base}/resources/mobile/js/common.js"></script>
	<script type="text/javascript">
		var base ="${base}";
		$(function(){
			var $padFromId=$("#padFromId");//表单
				var $pageNumber=$("#pageNumber");//页码
				$.pageSkip = function(pageNumber) {
					$pageNumber.val(pageNumber);
					$padFromId.submit();
					return false;
				}
		});
	</script>
	<script type="text/javascript" src="${base}/resources/terminal/js/public.js"></script>
</body>
</html>